#ifndef DLGPICKTIME_H_
#define DLGPICKTIME_H_

#include "scHeader.h"
#include <QDialog>
#include <QDateTime>
#include "ui_dlgPickDateTime.h"

namespace sybilpm
{

class DlgPickDateTime : public QDialog
{
	Q_OBJECT
public:
	DlgPickDateTime(const QDateTime & preset, QWidget *parent);
	~DlgPickDateTime();
	QDateTime getResult() const;
public slots:
	virtual void accept();

private:
	Ui::dlgPickDateTime ui;
private slots:
	void butTodaySl();
	void butMidnightSl();
	void butCurrentTimeSl();
	void butLateSl();
	void butFarBackSl();
	void butNowSl();
	void butFarFutureSl();
	void resultChangedSl();
};

} // namespace sybilpm

#endif /*DLGPICKTIME_H_*/
